<?php

namespace Wonfu\Core\Annotations;
use Doctrine\Common\Annotations\Annotation;
use Doctrine\Common\Annotations\Annotation\Enum;
use Doctrine\Common\Annotations\Annotation\Target;

/**
 * @Annotation
 * @Target("METHOD")
 * @author vison.cao visonforcoding@gmail.com
 */
final class RequestMapping extends Annotation
{
    /**
     * The HTTP request methods to map to, narrowing the primary mapping:
     * GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE, TRACE.
     * @Enum({"GET", "POST", "HEAD", "OPTIONS", "PUT", "PATCH", "DELETE", "TRACE"})
     *
     */
    public $method;


    /**
     * The headers of the mapped request, narrowing the primary mapping.
     * such as "application/json"
     * @var string
     */
    public $headers;


    /**
     * Assign a name to this mapping.
     * @var string
     */
    public $name;


    /**
     * The path mapping URIs (e.g.
     * @var string
     */
    public $path;

}